package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;

import javax.persistence.*;

import uy.com.csi.gestpro.model.mantenimiento.GpEmprsa;


/**
 * The persistent class for the gp_sbcntrtsta database table.
 * 
 */
@Entity
@Table(name="gp_sbcntrtsta", schema="proyecto")
@NamedQuery(name="GpSbcntrtsta.findAll", query="SELECT g FROM GpSbcntrtsta g")
public class GpSbcntrtsta implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Basic(optional = false)
	@SequenceGenerator(name = "sq_id_subcontratista", sequenceName = "proyecto.sq_id_subcontratista", allocationSize = 1)
    @GeneratedValue(generator = "sq_id_subcontratista")
	private Integer id;


	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="id_emprsa")
	private GpEmprsa gpEmprsa;
	
	//bi-directional many-to-one association to GpInfrmeDrio
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="id_infrme_drio")
	private GpInfrmeDrio gpInfrmeDrio;

	private Integer nmro;
	
	public GpSbcntrtsta() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public GpInfrmeDrio getGpInfrmeDrio() {
		return this.gpInfrmeDrio;
	}

	public void setGpInfrmeDrio(GpInfrmeDrio gpInfrmeDrio) {
		this.gpInfrmeDrio = gpInfrmeDrio;
	}

	public GpEmprsa getGpEmprsa() {
		return gpEmprsa;
	}

	public void setGpEmprsa(GpEmprsa gpEmprsa) {
		this.gpEmprsa = gpEmprsa;
	}

	public Integer getNmro() {
		return nmro;
	}

	public void setNmro(Integer nmro) {
		this.nmro = nmro;
	}

}